package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

/*
 * @author zzr
 * @date: 2025/04/13  18:21
 * @description:
 */
public class IODemo12 {
    public static void main(String[] args) {
        try (InputStream inputStream = new FileInputStream("./test.txt") ){
            Scanner scanner = new Scanner(inputStream);
            while (scanner.hasNext()) {
                String s = scanner.nextLine();
                System.out.println(s);
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
